I have created a test website from where I'm redirecting to paypal sandbox account , to complete my transaction. Till some days it was working fine. But from today when I redirect to sandbox account, it gives me below error
Error -
If you were making a purchase or sending money, we recommend that you check both your PayPal account and your email for a transaction confirmation after 30 minutes.
If you came to this page from another website, please return to that site (don't use your browser's Back button) and restart your activity.
If you came from PayPal's website, click the PayPal logo in the upper-left corner to return to our home page and restart your activity. You might have to log in again.
UserException: message 'An id of zero was passed to PartyPostalAddressPBImpl::load_by_id', return code: 3505 Backtrace: PPException::PPException(String const&) User::UserException::UserException(int, String const&) User::PartyPostalAddressPBImpl::load_by_id(unsigned long long) User::AddressPBImpl::load_by_id(unsigned long long, ForUpdate) User::ReputationALIImpl::processReputation(DeprecatedUserShim*, ReputationContainer*, char const*, int, MsgLog2*, DeprecatedUserShim const*) (anonymous namespace)::load_seller_details(PayPalCommonWebAppContext const&, PimpXClick&, unsigned long&, String&, ReputationContainer*) (anonymous namespace)::load_recipient_info(PayPalCommonWebAppContext const&, PimpXClick&, MerchantInfoUbiquityContainer&, CreditCardUbiquityContainer&, TransactionUbiquityContainer&, FlowInfoUbiquityContainer&, PassedParametersUbiquityContainer&, String&, ReputationContainer*, WalletInfoContainer*) Rapids::BusinessBlocks::HostedPayments::load_recipient(PayPalCommonWebAppContext const&, PimpXClick&, MerchantInfoUbiquityContainer&, CreditCardUbiquityContainer&, TransactionUbiquityContainer&, FlowInfoUbiquityContainer&, PassedParametersUbiquityContainer&, String&, WalletInfoContainer*) Rapids::Flows::OneX::StateOneXEC_Start::execute(Rapids::CGIVars const&) Rapids::DecoratedState::execute(Rapids::CGIVars const&) Riprap::RiprapRapidsGenericFlow::handle_execute(Riprap::WebAppContextOrnate const&, Rapids::TransitionRegistry const&, Rapids::State*, String const&, String const&, unsigned long long) Riprap::RiprapRapidsGenericFlow::process_states(Riprap::WebAppContextOrnate const&, Riprap::RiprapRapidsGenericFlow::ProcessStates, Riprap::DispatchInterceptorRegistry const&, Rapids::TransitionEdge const*) Riprap::RiprapRapidsGenericFlow::flow_call(Riprap::WebAppContextOrnate const&, Riprap::WebAppReturn const&, String const&, Riprap::DispatchInterceptorRegistry const&) Riprap::call_rapids(Riprap::WebAppContext const&, Riprap::RapidsFlowFactory const&, Riprap::DispatchAction const&, Riprap::WebAppReturn const&, String const&, Riprap::DispatchInterceptorRegistry const&) Riprap::dispatch_loop(Riprap::EPRegistry const&, Riprap::WebAppContext const&, Riprap::DispatchAction&, Riprap::WebAppReturn&, String const&, Riprap::DispatchInterceptorRegistry const&) Riprap::dispatch_wrapper(OutputStream&, Riprap::EPRegistry const&, Riprap::WebAppContext const&, Riprap::WebAppReturn const&, String const&, bool const&, Riprap::DispatchInterceptorRegistry const&) Riprap::entry_point(HTTPInterface&, Riprap::CGIVars&, OutputStream&, String const&, String const&) main
Is there any issue with the merchant account to whom I pay? Or anything else.
Please assist
Thankyou
There is a problem with your test Business account. I'm also trying to figure out why it happens. If you want to continue testing, create a new business account in your sandbox.
Dashboard > Sandbox > Accounts > Create Account
Related
my request is like ths
AF.request(request).validate(statusCode: 200...500).responseJSON { response in
This is the crash log from TestFlight
Last Exception Backtrace:
<br>0 CoreFoundation 0x1993badc0 __exceptionPreprocess + 220 (NSException.m:199)
<br>1 libobjc.A.dylib 0x1adf177a8 objc_exception_throw + 60 (objc-exception.mm:565)
<br>2 Foundation 0x19a67d61c +[NSJSONSerialization dataWithJSONObject:options:error:] + 316 (NSJSONSerialization.m:0)
<br>3 GO_Dev 0x100c59aec closure #1 in closure #1 in AutoSyncLoginVC.callSyncLoginAPI(username:password:) + 628 (AutoSyncLoginVC.swift:343)
<br>4 GO_Dev 0x100d9611c closure #1 in ApiManagerV2.requestWith(apiname:body:parameter:mainIP:method:success:failure:) + 2064 (ApiManager.swift:0)
<br>5 Alamofire 0x10219a544 partial apply for specialized closure #2 in closure #2 in closure #3 in closure #1 in DownloadRequest._response<A>(queue:responseSerializer:completionHandler:) + 48
<br>6 Alamofire 0x10212ddd0 thunk for #escaping #callee_guaranteed () -> () + 28 (<compiler-generated>:0)
This crash is likely occurring due to the parameters passed through JSONSerialization, as not all Swift values are convertible to JSON using that class. I suggest you either use Alamofire's ParameterEncoder to encode Encodable parameter values, or check JSONSerialization.isValidJSONObject before attempting to encode your parameters.
I am migrating some code from using wchar_t to char32_t, and when compiling with the -Werror=pointer-sign flag set, I am getting the following issue:
// main.c
#include <uchar.h>
#include <wchar.h>
int main(void) {
wprintf(U"some data\n");
}
Compiling: gcc -std=c11 -Werror=pointer-sign main.c
Output:
main.c: In function ‘main’:
main.c:5:10: error: pointer targets in passing argument 1 of ‘wprintf’ differ in signedness [-Werror=pointer-sign]
wprintf(U"some data\n");
^~~~~~~~~~~~~~
In file included from main.c:2:
/usr/include/wchar.h:587:12: note: expected ‘const wchar_t * restrict’ {aka ‘const int * restrict’} but argument is of type ‘unsigned int *’
extern int wprintf (const wchar_t *__restrict __format, ...)
^~~~~~~
To remedy this, I can do:
wprintf((const int *)U"some data\n");
//or
printf("%ls\n", U"some data");
Although this is quite a pain. Is there a nice and easy way to do this? What is the real difference between const unsigned int* vs const signed int*, aside from the data type it points to? Is this possibly dangerous, or should I just disable the flag altogether?
char32_t is an unsigned type.
wchar_t is either signed or unsigned, depending on implementation. In your case, it is signed.
You can't pass a pointer-to-unsigned where a pointer-to-signed is expected. So yes, you need a type-cast, however you should be casting to const wchar_t *, since that is what wprintf() actually expects (wchar_t just happens to be implemented as an int on your compiler, but don't cast to that directly):
wprintf((const wchar_t *)U"some data\n");
It doesn't get much cleaner than that, unless you wrap it in your own function, eg:
int wprintf32(const char32_t *str, ...)
{
va_list args;
va_start(args, str);
int result = vwprintf((const wchar_t *)str, args);
va_end(args);
return result;
}
wprintf32(U"some data\n");
Note that this code will not work properly at all on platforms where sizeof(wchar_t) < sizeof(char32_t), such as Windows. On those platforms, where sizeof(wchar_t) is 2, you will have to actually convert your string data from UTF-32 to UTF-16 instead, eg:
int wprintf32(const char32_t *str, ...)
{
va_list args;
int result;
va_start(args, str);
if (sizeof(wchar_t) < sizeof(char32_t))
{
wchar_t *str = convert_to_utf16(str); // <-- for you to implement
result = vwprintf(str, args);
free(str);
}
else
result = vwprintf((const wchar_t *)str, args);
va_end(args);
return result;
}
wprintf32(U"some data\n");
we are facing a crash in our game during prefab instatiation, below is the crashlog.
Unknown:-2 libunity.00124d68 // resolves to GameObject::QueryComponentByType(Unity::Type const*) const
Unknown:-2 libunity.001de6d8 // resolves to CollectAndProduceClonedIsland(Object&, Transform*, vector_map<int, int, std::less<int>, stl_allocator<std::pair<int, int>, (MemLabelIdentifier)1, 16> >&)
Unknown:-2 libunity.001df368 // resolves to CloneObjectImpl(Object*, Transform*, vector_map<int, int, std::less<int>, stl_allocator<std::pair<int, int>, (MemLabelIdentifier)1, 16> >&)
Unknown:-2 libunity.001df274 // resolves to CloneObject(Object&)
Unknown:-2 libunity.00a56340 // resolves to Object_CUSTOM_Internal_CloneSingle(MonoObject*)
Unknown Unknown.0000ca04
Unknown:-2 Object.Internal_CloneSingle
<0x00030>:48 Object.Instantiate
<0x002eb>:747 DialogManager.CreateAndShowDialog
<0x0024b>:587 DialogManager.TryToShowNextDialog
<0x0013f>:319 DialogManager.Update
Unknown:-2 Object.runtime_invoke_void__this__
Unknown:-2 libmono.00021f23
mono_runtime_invoke:136 libmono.mono_runtime_invoke
Unknown:-2 libunity.004ec6a0
Unknown:-2 libunity.004dab50
Unknown:-2 libunity.001e1300
Unknown:-2 libunity.0031f8a8
Unknown:-2 libunity.005efc68
Unknown:-2 libunity.005f2a7c
Unknown:-2 base.000839fb
basically this looks like a crash happening while instantiating a prefab.
Does our unity version has anything to do with this? its 5.6.4p4.
We are loading this from an asset bundle. Is that the reason by any chance?
We are Instantiating this from a co-routine. Can this happen because of this?
Could this be a memory issue?
Please let me know if anyone has some context on this crash.
Thank you.
I am trying to measure how much memory does some program mmaps.
I am using the following code:
void * mmap (void * addr, size_t len, int prot, int flags, int fildes, off_t off) {
printf("in mmap1\n");
static void *(*realfn)(void*, size_t, int, int, int, off_t)
= (void *(*)(void*, size_t, int, int, int, off_t))dlsym(RTLD_NEXT, "mmap");
printf("in mmap2\n");
void * result = (*realfn)(addr, len, prot, flags, fildes, off);
if ((int) result != -1) {
stats.add (len);
}
return result;
}
stats is some global variable that saves the stats.
I turn this code into a shared object and link with it. For some programs it works, but for
some programs, in mmap1 is printed once, then in mmap1 is printed again, and then nothing
happens (the program gets stuck at this point until I kill it, never reaching in mmap2.
I read about dlsym, but I can't find the problem causing this.
I would love to here from someone more experienced.
Thanks.
I am using Xcode to write an iPhone project and I use an external library. I added the Xcode project file to the parent target and adjusted the header search path and set it as a direct dependency in the parent's build target.
Now the strange thing happens: I can open the library and compile it without problems. The library links to some frameworks e.g. AVFoundation.framework.
I clean the target and start building the parent project. In my build results I see that it builds the library, but then the linking fails with these error messages:
Undefined symbols:
"_AVCaptureSessionPresetMedium", referenced from:
_AVCaptureSessionPresetMedium$non_lazy_ptr in libZXingWidget.a(ZXingWidgetController.o)
(maybe you meant: _AVCaptureSessionPresetMedium$non_lazy_ptr)
"_CVPixelBufferGetHeight", referenced from:
-[ZXingWidgetController captureOutput:didOutputSampleBuffer:fromConnection:] in libZXingWidget.a(ZXingWidgetController.o)
"_CVPixelBufferLockBaseAddress", referenced from:
-[ZXingWidgetController captureOutput:didOutputSampleBuffer:fromConnection:] in libZXingWidget.a(ZXingWidgetController.o)
"_AudioServicesPlaySystemSound", referenced from:
-[ZXingWidgetController presentResultForString:] in libZXingWidget.a(ZXingWidgetController.o)
"_AudioServicesCreateSystemSoundID", referenced from:
-[ZXingWidgetController viewWillAppear:] in libZXingWidget.a(ZXingWidgetController.o)
"_CVPixelBufferUnlockBaseAddress", referenced from:
-[ZXingWidgetController captureOutput:didOutputSampleBuffer:fromConnection:] in libZXingWidget.a(ZXingWidgetController.o)
"_CVPixelBufferGetBaseAddress", referenced from:
-[ZXingWidgetController captureOutput:didOutputSampleBuffer:fromConnection:] in libZXingWidget.a(ZXingWidgetController.o)
"_CVPixelBufferGetBytesPerRow", referenced from:
-[ZXingWidgetController captureOutput:didOutputSampleBuffer:fromConnection:] in libZXingWidget.a(ZXingWidgetController.o)
"_iconv_close", referenced from:
zxing::qrcode::DecodedBitStreamParser::append(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, unsigned char const*, unsigned long, char const*)in libZXingWidget.a(DecodedBitStreamParser-64E27B33E79CBC52.o)
zxing::qrcode::DecodedBitStreamParser::append(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, unsigned char const*, unsigned long, char const*)in libZXingWidget.a(DecodedBitStreamParser-64E27B33E79CBC52.o)
"_OBJC_CLASS_$_AVCaptureVideoPreviewLayer", referenced from:
objc-class-ref-to-AVCaptureVideoPreviewLayer in libZXingWidget.a(ZXingWidgetController.o)
"_iconv", referenced from:
zxing::qrcode::DecodedBitStreamParser::append(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, unsigned char const*, unsigned long, char const*)in libZXingWidget.a(DecodedBitStreamParser-64E27B33E79CBC52.o)
"_OBJC_CLASS_$_AVCaptureSession", referenced from:
objc-class-ref-to-AVCaptureSession in libZXingWidget.a(ZXingWidgetController.o)
"_OBJC_CLASS_$_AVCaptureDevice", referenced from:
objc-class-ref-to-AVCaptureDevice in libZXingWidget.a(ZXingWidgetController.o)
"_kCVPixelBufferPixelFormatTypeKey", referenced from:
_kCVPixelBufferPixelFormatTypeKey$non_lazy_ptr in libZXingWidget.a(ZXingWidgetController.o)
(maybe you meant: _kCVPixelBufferPixelFormatTypeKey$non_lazy_ptr)
"_OBJC_CLASS_$_AVCaptureVideoDataOutput", referenced from:
objc-class-ref-to-AVCaptureVideoDataOutput in libZXingWidget.a(ZXingWidgetController.o)
"_CVPixelBufferGetWidth", referenced from:
-[ZXingWidgetController captureOutput:didOutputSampleBuffer:fromConnection:] in libZXingWidget.a(ZXingWidgetController.o)
"_AudioServicesDisposeSystemSoundID", referenced from:
-[ZXingWidgetController dealloc] in libZXingWidget.a(ZXingWidgetController.o)
"_OBJC_CLASS_$_AVCaptureDeviceInput", referenced from:
objc-class-ref-to-AVCaptureDeviceInput in libZXingWidget.a(ZXingWidgetController.o)
"_AVLayerVideoGravityResizeAspectFill", referenced from:
_AVLayerVideoGravityResizeAspectFill$non_lazy_ptr in libZXingWidget.a(ZXingWidgetController.o)
(maybe you meant: _AVLayerVideoGravityResizeAspectFill$non_lazy_ptr)
"_CMSampleBufferGetImageBuffer", referenced from:
-[ZXingWidgetController captureOutput:didOutputSampleBuffer:fromConnection:] in libZXingWidget.a(ZXingWidgetController.o)
"_iconv_open", referenced from:
zxing::qrcode::DecodedBitStreamParser::append(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, unsigned char const*, unsigned long, char const*)in libZXingWidget.a(DecodedBitStreamParser-64E27B33E79CBC52.o)
"_AVMediaTypeVideo", referenced from:
_AVMediaTypeVideo$non_lazy_ptr in libZXingWidget.a(ZXingWidgetController.o)
(maybe you meant: _AVMediaTypeVideo$non_lazy_ptr)
ld: symbol(s) not found
collect2: ld returned 1 exit status
I can include the needed frameworks in the parent project, but I thought that by including the frameworks in the library project the linking would be OK.
My question is: Do I have to include all the frameworks that my dependent subprojects use in the parent project to ensure proper linking, or am I doing something wrong?
Thanks for your help.
make sure include "CoreMedia.framework","AudioToolbox.framework","CoreGraphics.framework","CoreVideo.framework","AVFoundation.framework","libiconv.dylib"
frameworks in project in Build Phases
If the subproject compiles into a static lib, yes.